1
bash
This demonstrates various Bash shell options (shopt
) for controlling globbing behavior, including case-insensitivity, recursive matching, and handling of non-matching patterns.
shopt -s nullglob # Non-matching globs are removed ('*.foo' => '') shopt -s failglob # Non-matching globs throw errors shopt -s nocaseglob # Case insensitive globs shopt -s dotglob # Wildcards match dotfiles ("*.sh" => ".foo.sh") shopt -s globstar # Allow ** for recursive matches ('lib/**/*.rb' => 'lib/a/b/c.rb')
bash internalshell configuration and customizationglobbing options